<meta meta="佣金结算配置" args="data"/>
<style>

</style>
<form class="form-horizontal" id="form" s="form,datac,nda,valid" s-data="data" style="width: 600px;">
    <div class="form-group">
        <label class="col-sm-3 control-label">奖励佣金百分比</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" max="100" min="0" class="form-control"
                   name="rewardCommissionRate" placeholder="奖励佣金百分比"
                   s-valid-error="require(),range(0,100)"/>
            <div class="help-block">在用户获得的佣金为基础，额外奖励的金额，该数值为百分比</div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">佣金奖励消耗积分</label>
        <div class="col-sm-9">
            <label class="s-checkbox-switch">
                <input autocomplete="off" type="checkbox" name="useIntegralToReward" value="true" />
                <span class="s-checkbox-indicator"></span>
            </label>
            <div class="help-block">必须消耗积分才能进行佣金奖励</div>
        </div>
    </div>
</form>
<script type="text/javascript">
    S.getContent = function () {
        var deferred = $.Deferred();
        $form.validate().done(function() {
            deferred.resolve(Smart.serializeToObject($form.node))
        })
        return deferred;
    }
</script>